home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1547 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.0 KB  |  35 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 2)
  5.       {
  6.          _root.txt_number = 1;
  7.          _root.next_dis1 = 2;
  8.          _root.next_txt1 = "It\'s the door to the men\'s room.";
  9.       }
  10.       if(_root.micon._currentframe == 1 && _root.range == true)
  11.       {
  12.          _root.nogo.exit3._x = _root.lvl.hewitt._x;
  13.          _root.nogo.exit3._y = _root.lvl.hewitt._y;
  14.       }
  15.       if(_root.micon._currentframe == 37 && _root.taken36 == 1 && _root.range == true)
  16.       {
  17.          if(_root.talk8 == 1)
  18.          {
  19.             _root.even11 = 1;
  20.             _root.micon.gotoAndStop(1);
  21.             _root.sfx.gotoAndStop(3);
  22.             _root.txt_number = 1;
  23.             _root.next_dis1 = 2;
  24.             _root.next_txt1 = "Skippy won\'t know what hit him.";
  25.          }
  26.          else
  27.          {
  28.             _root.txt_number = 1;
  29.             _root.next_dis1 = 2;
  30.             _root.next_txt1 = "I don\'t think it\'s the right time for that yet.";
  31.          }
  32.       }
  33.    }
  34. }
  35.